from flask import Flask,render_template

app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello World!'


@app.route('/<name>')
def index(name):

    mydict = {"key": "This is a Flask Program"}
    mylist = ['it', 'Hello', 'the', 'world']
    myintvar = 0
    username = 'zhouqi'

    password = 'bg'

    host = '192.168.158.131'

    port = 22
    # myobj = myParamiko(host,username,password,port)

    return render_template('user.html', name = name, mydict=mydict, mylist=mylist, myintvar=myintvar)


@app.route('/extends')
def extends():
    return render_template('child.html')

@app.route('/bootstrap/<name>')
def bootstrap(name):
    return render_template('bootstrap.html', name=name)
if __name__ == '__main__':
    app.run()
